
<ion-header>
    <ion-navbar>
        <ion-title>选择用户</ion-title>
    </ion-navbar>
</ion-header>
<ion-content>
    <div class="search-bar-content">
        <ion-searchbar placeholder="搜索" (ionInput)="searchWork()" [(ngModel)]="workInput">
        </ion-searchbar>
    </div>
    <ion-list class="approval-list">
        <ion-item>
            <ion-checkbox [(ngModel)]="selectedAll" (click)="selectAllUser();"></ion-checkbox>
            <ion-label>全选</ion-label>
        </ion-item>
        <ion-item  *ngFor="let iuser of datas">
            <ion-checkbox [(ngModel)]="iuser.userSelected" ></ion-checkbox>
            <ion-label> {{iuser.userName}}({{iuser.departmentName}})</ion-label>
        </ion-item>
    </ion-list>
</ion-content>
<ion-footer>
    <button class="submit-btn" (click)="chooseUser();">确定</button>
</ion-footer>